import './App.css';
import React, { Component } from 'react';
import { appNavigation } from './utils/goPage';
import {withRouter} from 'react-router-dom'
import Jump from './utils/goPage';
import Router from '@/router'
import { inject, observer } from 'mobx-react';

@inject('store')
@observer
class App extends Component {
	componentDidMount(){
		appNavigation(this.props?.history)
		console.log(Jump.goOpenPage())
	}
	render() {
		return (
			<div>
				<Router></Router>
			</div>
		);
	}
}

export default withRouter(App);

// const  App = ({store})=> {

//   return (
//     <div className="App" >
// 		<button onClick={newPage}>go666</button>
//     </div>
//   );
// }

// export default inject('store')(observer(App));
